import service from "../../utils/request"

//添加会员服务
export const addVipService = (data: VipService): Promise<Result<string>> => service.post('/vipservice', data)
//获取会员服务
export const getVipServicePage = (page: number, title: string): Promise<PageResult<ListCoinService[]>> => service.get(`/vipservice/page?page=${page}&title=${title}`)
//编辑会员服务
export const editVipService = (id: string, data: VipService): Promise<Result<string>> => service.patch(`/vipservice/${id}`, data)
//删除会员服务
export const delVipService = (id: string): Promise<Result<string>> => service.delete(`/vipservice/${id}`)
//批量删除会员服务
export const manyDelVipService = (idList: string[]): Promise<Result<string>> => service.post('/vipservice/delMany', idList)
